<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商家信息</title>

</head>
<body> 
<!-- 显示错误信息 -->
<c:if test="${allErrors!=null }">
	<c:forEach items="${allErrors }" var="error">
	${ error.defaultMessage}<br/>
</c:forEach>
</c:if>

<form id="itemForm" action="${pageContext.request.contextPath }/Merchant/updateMerchant.shtml" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="${item.id }"/>
商品信息：<br>
如要修改信息，直接填入信息，然后点击修改
<table width="100%" border=1>
<tr>
	<td>您的名字</td>
	<td><input type="text" name="shopkeeper" value="${item.shopkeeper }"/></td>
</tr>
<tr>
	<td>您的商店名字</td>
	<td><input type="text" name="shopName" value="${item.shopName}"/></td>
</tr>
<tr>
	<td>您的地址</td>
	<td><input type="text" name="shipAddress" value="${item.shipAddress}"/></td>
</tr>
<tr>
	<td>营业执照</td>
	<td>
		<c:if test="${item.licenseUrl !=null}">
			<img src="${pageContext.request.contextPath }/img/${item.licenseUrl}" width=100 height=100/>
			<br/>
		</c:if>
		<input type="file"  name="license"/> 
	</td>
</tr>
<tr>
	<td>您的保证金</td>
	<td>
	<input type="text" name="cashDeposit" value="${item.cashDeposit}" />
	</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="修改"/>
</td>
</tr>
</table>
</form>
</body>

</html>